﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using System.Threading;
using System.IO;
using System.IO.Ports;

using System.Management;

using System.Reflection;
using System.Diagnostics;

namespace LevSTProgramTransform
{
    #region Public Enumerations
    public enum connection { Half_Duplex, Full_Duplex };
    public enum MonitorShow { None, OneWireShowing, CommandShowing };
    public enum DataMode { Text, Hex };
    public enum LogMsgType { Incoming, Outgoing, Normal, Warning, Error, Test };
    #endregion


    public partial class SerialPortForm : Form
    {
        #region Local Variables

        // Various colors for logging info
        private Color[] LogMsgTypeColor = { Color.Blue, Color.Green, Color.Black, Color.Orange, Color.Red, Color.Pink };

        // The main control for communicating through the RS-232 port
        private SerialPort gSerialComPort = new SerialPort();

        List<Byte> ReceivedComPortBytesList = new List<Byte>();
        List<Byte> TrasnmitComPortBytesList = new List<Byte>();

        //LEV_ST_Monitor_Form ST_Monitor_Form;

        #endregion



        public SerialPortForm()
        {
            // Load user settings

            InitializeComponent();
            //InitializeControlValues();
            StartPosition = FormStartPosition.CenterScreen;

            //EnableControls();
            if (System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed)
            {
                this.Text = this.Text + "( Release Version : " + System.Deployment.Application.ApplicationDeployment.CurrentDeployment.CurrentVersion.ToString() + " )";
            }
        }



    }//class SerialPortForm

}

